/**
 * 
 */
package br.com.consultsystems.negocio.impl.financeiro;

import java.util.List;

import javax.ejb.EJB;
import javax.ejb.Stateless;

import br.com.consultsystems.dominio.financeiro.Banco;
import br.com.consultsystems.negocio.spec.financeiro.BancoNegocio;
import br.com.consultsystems.persistencia.spec.financeiro.BancoPersistencia;

/**
 * @author Moralles
 *
 */
@Stateless(name = "bancoNegocio")
public class BancoNegocioImpl implements BancoNegocio {

	@EJB
	private BancoPersistencia bancoPersistencia;
	
	@Override
	public Banco merge(Banco t) throws Exception {
		return bancoPersistencia.merge(t);
	}

	@Override
	public Banco retrieve(Long id) throws Exception {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public void remove(Banco t) throws Exception {
		t = this.merge(t);
		bancoPersistencia.remove(t);
	}

	@Override
	public void refresh(Banco t) throws Exception {
		bancoPersistencia.refresh(t);
	}

	@Override
	public List<Banco> retrieveAll() throws Exception {
		return bancoPersistencia.retrieveAll();
	}

	@Override
	public List<Banco> retrieveByFilter(String nome) throws Exception {
		return bancoPersistencia.retrieveByFilter(nome);
	}

	
}
